package com.example.restaurant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.restaurant.controller.form.AddDeskForm;
import com.example.restaurant.controller.form.GetDeskForm;
import com.example.restaurant.controller.form.PutDeskForm;
import com.example.restaurant.model.Desk;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 桌表 服务类
 * </p>
 *
 * @author x
 * @since 2022-09-29
 */
public interface DeskService extends IService<Desk> {

    //查询桌名是否重复
    boolean checkDeskName(String deskName);

    //新增餐桌
    boolean addDesk(AddDeskForm addDeskForm);

    //删除餐桌
    boolean delDesk(int deskId);

    //查询
    Page<Desk> getDeskByStoreId(Integer storeId,String deskName,int current,int size);

    //修改餐桌
     boolean putDesk(PutDeskForm putDeskForm);

     //通过门店ID查询桌子
    List<Desk> getDeskByStoreIda(int storeId);
}
